﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Control.Dal;

namespace Control.Bus
{
    public class BusStaff
    {
        public int ID { get; set; }
        public string UserName { get; set; }
        public string PassWord { get; set; }

        public bool DangNhap()
        {
            bool resuilt = false;
            BusStaff nv = DalStaff.DangNhap(this);
            if (nv != null)
            {
                ID = nv.ID;
                resuilt= true;
            }
            return resuilt;
        }
    }
}
